package com.changqin.math;

public class Move {

    //java中位移运算只能是整数,左移是缩小2的位移数次方
    public static void main(String[] args) {
        System.out.println(10>>>2);//10缩小2的2次方,取整为2
        System.out.println(10<<3);//10扩大2的3次方,取整为80
        System.out.println(0x10<<3);//十六进制0x10转化为二进制位扩大2的3次方,取整为80
        System.out.println(Integer.parseInt("0x10",16));
    }
}